home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / tex-k-archive.gz / tex-k-archive / 000016_ken%cs.toronto….cs.toronto.edu_Thu Sep 30 21:26:22 1993.msg < prev    next >
Internet Message Format  |  1994-10-11  |  2KB

  1. Received: from relay.cs.toronto.edu by cs.umb.edu with SMTP id AA11343
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Fri, 1 Oct 1993 01:26:38 -0400
  3. Received: by relay.cs.toronto.edu id <428515>; Fri, 1 Oct 1993 01:26:27 -0400
  4. From: Ken Lalonde <ken@cs.toronto.edu>
  5. To: tex-k@cs.umb.edu
  6. Subject: Simplifying TeX configuration
  7. Message-Id: <93Oct1.012627edt.428515@relay.cs.toronto.edu>
  8. Date:     Fri, 1 Oct 1993 01:26:22 -0400
  9.  
  10. Hello all,
  11.  
  12. In my experience, the tex-k programs are a huge step forward
  13. in making TeX easier to install and maintain.
  14. Here's an idea that I think would improve them further.
  15.  
  16. The GNU configure mechanism does a good job of handling
  17. the system-dependent part, but one still has to modify
  18. the Makefile.in to set the various paths (default TEXINPUTS etc.).
  19. It's also hard for users to know what the defaults are.
  20.  
  21. I'd like to see the default values of the various env. variables
  22. taken out of the code itself.  Here's the idea, stolen
  23. from the "zmailer" mail system:
  24.  
  25. During initialization, each TeX program reads the file
  26.  
  27.     ${TEXCONFIG-"/etc/tex.conf"}
  28.  
  29. TEXCONFIG looks like
  30.  
  31.     TEXINPUTS=/usr/tex/inputs:.
  32.     TEXFONTS=.:/usr/tex/fonts//
  33.  
  34. For each A=B line, the program does
  35.  
  36.     if (getenv(A) == NULL)
  37.         putenv(A=B)
  38.  
  39. i.e. anything in the environment overrides the TEXCONFIG settings.
  40. TEXCONFIG should be parseable by sh, so scripts can use it too.
  41.  
  42. The nice thing about this is:
  43.     - the default settings are obvious.
  44.       No need to bury them in programs, man pages, etc.
  45.     - simplified configuration
  46.     - no need to recompile to change the defaults
  47.     - it's easy to test different configs
  48.       by setting TEXCONFIG to something else.
  49.  
  50. What say?
  51.  
  52.  
  53. Ken Lalonde
  54. Dept. of Computer Science, University of Toronto